<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<script>
	var ctx = "${ctx}";
</script>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />

	<link href="${ctx}/static/css/bootstrap.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/font-awesome.min.css" rel="stylesheet" />
	<link href="${ctx}/static/css/animate.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/style.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/common.css?v=${static_version}" rel="stylesheet" />
	<link href="//at.alicdn.com/t/font_9x03jhokyws9vn29.css" rel="stylesheet">
	<link href="${ctx}/static/css/plugins/summernote/summernote.css?v=${static_version}/" rel="stylesheet">
	<link href="${ctx}/static/css/plugins/summernote/summernote-bs3.css?v=${static_version}/" rel="stylesheet">
	<link href="${ctx}/static/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
	<link href="${ctx}/static/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
	<link href="${ctx}/static/css/plugins/markdown/bootstrap-markdown.min.css" rel="stylesheet" />
<title>赛事详情</title>
</head>
<body>
<body class="gray-bg">
	<div class="wrapper wrapper-content  animated fadeInRight">
		<div class="ibox float-e-margins">	
			<div class="ibox-title">
			    <h5>赛事详情<small>&nbsp;&nbsp;&nbsp;&nbsp;基本信息</small></h5>
			</div>
			<div class="ibox-content form form-horizontal">		     	
				<div class="form-group">
	            	<label class="col-sm-2 control-label">赛事分类：</label>
	            	
				    <div class="col-sm-2">
				        <select name="match_cate" class="input-md form-control chosen-select" tabindex="4"  >
							<c:forEach items="${match_cates_list}" var="cate">
							<option value="${cate.item_value}" 
								<c:if test="${u_match.match_cate==cate.item_value}">selected</c:if>>${cate.display_name}
							</option>					
							</c:forEach>
						</select>		
					</div>
				</div>
			
	        	<div class="form-group">
	            	<label class="col-sm-2 control-label">赛事名：</label>           	
				    <div class="col-sm-2">
	                	<input type="text" class="form-control" value="${u_match.match_name}" readonly name="match_name" datatype="*" nullmsg="不能为空">
	        		</div>
				</div>
	
		        <div class="form-group">
					<label class="col-sm-2 control-label">赛事介绍：</label>
		        	<input type="hidden" id="match_introduce" name ="match_introduce" >
					<div class="col-sm-2">
				 		<div id="summernote" class="form-control">${u_match.match_introduce}</div>
				 	</div>	
				</div>
				
		        <div class="form-group">
					<label class="col-sm-2 control-label">赛事规则介绍：</label>
		            <div class="col-sm-2">
		                <textarea class="form-control" readonly name="match_rules" datatype="*" nullmsg="不能为空">${u_match.match_rules}</textarea>
		        	</div>
				</div>
				
				 <div class="form-group">
					<label class="col-sm-2 control-label">赛事缩略图：</label>
		            <div class="col-sm-2">
		                <div id="fileList_pre" class="uploader-list"></div>
						<div id="filePicker_pre">选择图片</div>
						<input type="hidden" class="input-text"
						value="${u_match.thumbnail}" placeholder=""
						id="thumbnail" name="thumbnail">
						<c:if test="${u_match.thumbnail != ''}">
							<div>
								<img id= "show_thumb" src = "${u_match.thumbnail}" style="width:100px; height:100px"/>
							</div>
						</c:if>
		        	</div>
				</div>
							
		        <div class="form-group">
					<label class="col-sm-2 control-label">缩略图H5：</label>
		            <div class="col-sm-2">
		            	<input type="text" class="form-control" value="${u_match.thumbnail_h5}" readonly name="thumbnail_h5" datatype="*" nullmsg="不能为空">
		        	</div>
				</div>
			
		        <div class="form-group">
					<label class="col-sm-2 control-label">报名起止时间：</label>
		            <div class="col-sm-2">
		                <input type="text"  class="form-control Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" 
		                	value="${u_match.pstart_time}" readonly name="pstart_time" datatype="*" nullmsg="不能为空">
		        	</div>
				
					<label class="col-sm-2 control-label">至：</label>
		            <div class="col-sm-2">
		                <input type="text"  class="form-control Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"  
		                	value="${u_match.pend_time}" readonly name="pend_time" datatype="*" nullmsg="不能为空">
		        	</div>
				</div>
				
		        <div class="form-group">
					<label class="col-sm-2 control-label">投票起止时间：</label>
		            <div class="col-sm-2">
		                <input type="text" class="form-control Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
		                	value="${u_match.vstart_time}" readonly name="vstart_time" datatype="*" nullmsg="不能为空">
		        	</div>
				
					<label class="col-sm-2 control-label">至：</label>
		            <div class="col-sm-2">
		                <input type="text" class="form-control Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" 
		                	value="${u_match.vend_time}" readonly name="vend_time" datatype="*" nullmsg="不能为空">
		        	</div>
				</div>
				
		        <div class="form-group">
					<label class="col-sm-2 control-label">结果公布时间：</label>
		            <div class="col-sm-2">
		                <input type="text"  class="form-control Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"  
		                	value="${u_match.result_time}" readonly name="result_time" datatype="*" nullmsg="不能为空">
		        	</div>
				</div>
	
			<div class="row"></div>
			<div class="cl pd-5 bg-1 bk-gray"> 		
				<div class="btn btn-default btn-warning title rleft def" style="width:100%">奖项设定</div>			
			 </div>

	
         <div class="form-group">
			<label class="col-sm-2 control-label">奖金总额 ：</label>
             <div class="col-sm-2">
                <input type="text" class="form-control" value="${u_match.bonus_amount}" readonly>
        	</div>
		</div>
		 <div class="form-group">
			<label class="col-sm-2 control-label">平台收费 ：</label>
            <div class="col-sm-2">
            	<input type="text" class="form-control" value="${u_match.counter_fee}" readonly>
        	平台收取赛事总金额  10  ％
        	</div>
        
		</div> 
		     
        <div class="form-group">
			<label class="col-sm-2 control-label">获奖金额：</label>
            <div class="col-sm-2">
            	<input type="text" class="form-control" value="${u_match.win_amount}" readonly>
        	</div>
		</div>
         <div class="form-group">
			<label class="col-sm-2 control-label">竞猜金额 ：</label>
             <div class="col-sm-2">
                <input type="text" class="form-control" value="${u_match.guess_amount}" readonly>
        	</div>
		</div>
		 <div class="form-group">
			<label class="col-sm-2 control-label">参赛名额 ：</label>
            <div class="col-sm-2">
                <input type="text" class="form-control" value="${u_match.join_count}" readonly>
        	</div>
		</div>
		
		 <div class="form-group">
			<label class="col-sm-2 control-label">奖项设置 ：</label>
				   <div style="width:70%;margin-left: 10px"  class="col-sm-2">		 
			<table
				class="table table-border table-bordered table-hover table-bg table-sort" id="charge">
				<thead>
					<tr class="text-c">                        
                        <th style="width:15%">奖项等级</th>                            
						<th style="width:15%">获奖人数</th>                           
						<th style="width:15%">奖金比例</th>                      
						<th style="width:15%">奖金（元）</th>
						<th style="width:25%">其他</th>
					</tr>
				</thead>
				<tbody>
				<c:forEach items="${list_match_prize}" var="prize_info">
					<tr class="text-c">
						<td>${prize_info.prize_name}</td>							
						<td>${prize_info.winner_count}</td>							
						<td>${prize_info.prize_percent}</td>								
						<td>${prize_info.prize_money}</td>								
						<td>${prize_info.remark}</td>													
					</tr>
				</c:forEach>		
				</tbody>
			</table>
			</div>
		</div>

      	 <div class="form-group">
			<label class="col-sm-2 control-label">是否需要佐证视频：</label>
            <div class="col-sm-2">
              	<input type="radio" name="is_need_vedio" value="1" id="is_need_vedio"  <c:if test="${u_match.is_need_vedio==1}">checked</c:if> ><label>是</label>
				<input type="radio" name="is_need_vedio" value="2" id="is_need_vedio"  <c:if test="${u_match.is_need_vedio==2}">checked</c:if> ><label>否</label>
        	</div>
		</div>
  	</div>
</div>
</div>

	<script src="${ctx}/static/js/jquery.min.js"></script>
	<script src="${ctx}/static/js/bootstrap.min.js"></script>
	<!-- 插件脚本 -->
	<script src="${ctx}/static/js/plugins/layer/layer.js"></script>	
	<script src="${ctx}/static/js/jquery.form.js"></script>
	<script src="${ctx}/static/js/plugins/webuploader/webuploader.min.js"></script>
	<script src="${ctx}/static/js/plugins/validate/jquery.validate.min.js"></script>
	<script src="${ctx}/static/js/Validform/5.3.2/Validform.min.js"></script>
	<script src="${ctx}/static/js/plugins/dataTables/jquery.dataTables.js"></script>
	<script src="${ctx}/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>	
    <script src="${ctx}/static/js/plugins/summernote/summernote.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/summernote/summernote-zh-CN.js?v=${static_version}"></script>

<script type="text/javascript">
$(document).ready(function(){
	$('#summernote').summernote({
		height: 150    
	});
});

var web_path = '${ctx}';
</script>
</body>
</html>

